Various cleanups.
Signed-off-by: chris@xensource.com
}
#define CASE_GET_REG_P(REG, reg) \
- case REG_ ## REG: reg_p = &(regs->reg); break
+ case REG_ ## REG: reg_p = (unsigned long *)&(regs->reg); break
static void vmx_dr_access (unsigned long exit_qualification, struct xen_regs *regs)
{
u32 disp32 = 0;
u8 *eip; /* ptr to instruction start */
u8 *pb, b; /* ptr into instr. / current instr. byte */
- unsigned long *pseg = NULL; /* segment for memory operand (NULL=default) */
+ u32 *pseg = NULL; /* segment for memory operand (NULL=default) */
/* WARNING: We only work for ring-3 segments. */
if ( unlikely(VM86_MODE(regs)) || unlikely(!RING_3(regs)) )
memory_t address; /* 4: code address */
} PACKED trap_info_t; /* 8 bytes */
-/* So that we can use 'l' modifier in printf-style format strings. */
-#define u32 unsigned long
-
typedef struct xen_regs
{
u32 ebx;
u32 gs;
} PACKED execution_context_t;
-#undef u32
-
typedef u64 tsc_timestamp_t; /* RDTSC timestamp */
/*
#ifndef __XEN_KEYHANDLER_H__
#define __XEN_KEYHANDLER_H__
-#include <asm/regs.h>
+struct xen_regs;
/*
* Register a callback function for key @key. The callback occurs in
typedef unsigned int uint;
typedef unsigned long ulong;
+#if 0
#ifndef __BIT_TYPES_DEFINED__
#define __BIT_TYPES_DEFINED__
typedef __u16 uint16_t;
typedef __u32 uint32_t;
typedef __u64 uint64_t;
+#endif
struct domain;